package io.renren.modules.task.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.task.entity.MtCcEquipmentRunInfoLogEntity;
import io.renren.modules.task.model.MtCcEquipmentRunInfoLogVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-04-23 09:03:44
 */
@Mapper
@Component
public interface MtCcEquipmentRunInfoLogDao extends BaseMapper<MtCcEquipmentRunInfoLogEntity> {

    List<MtCcEquipmentRunInfoLogVo> queryPageByTerm(Page<MtCcEquipmentRunInfoLogVo> pagination, @Param("params") Map<String, Object> params);

    Integer selectCountByTaskType(Integer taskType);

    List<MtCcEquipmentRunInfoLogVo> queryRunInfoLogByParams(@Param("params") Map<String, Object> params);

    List<MtCcEquipmentRunInfoLogEntity> selectRunInfoLogByConsole(@Param("params") Map<String, Object> params);
}
